package com.study.service;

import com.study.dao.UserDAO;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author chenyeqing
 * @Date 2021/11/2 23:01
 */
public class UserServiceImpl implements UserService {

    private UserDAO userDAO;

    public void setUserDAO(UserDAO userDAO) {
        this.userDAO = userDAO;
    }

    @Override
    public void login(String name, String password) {
        userDAO.login(name, password);
    }
}
